package xin.lhuo.we.server.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import xin.lhuo.we.server.entity.User;

/**
 * @author Lhuo
 * @date 2019/4/30 15:05
 */
@Mapper
@Component
public interface UserMapper {

    int save(User user);

    int checkUsername(String username);

    int checkPhone(String phone);

    int deleteById(int id);

    User selectById(int id);

    User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

}
